import request from '@/utils/request'

export default {
  // 列表
  query(data) {
    return request({
      url: `/v1/external-inspection/inspection-report/list`,
      method: 'post',
      data
    })
  },
  // 创建验货报告(WMS)
  create(data) {
    return request({
      url: `/v1/external-inspection/inspection-report/create`,
      method: 'post',
      data
    })
  },
  // 批量作废
  batchCancel(data) {
    return request({
      url: `/v1/external-inspection/inspection-report/batch-cancel`,
      method: 'post',
      data
    })
  },
  // 生成验货报告
  processReport(data) {
    return request({
      url: `/v1/external-inspection/inspection-report/process-report`,
      method: 'post',
      data
    })
  },
  // 下载验货报告
  download(params) {
    return request({
      url: `/v1/external-inspection/inspection-report/download`,
      method: 'get',
      params
    })
  },
}
